void npc(NPC@ npc){
    Player@ player = npc.getPlayer();
    int state = npc.getState();
    if(state == 1 && npc.getSelected() == NO){
        npc.addText("You must have some business to take care of here, right?");
        npc.sendNext();
        npc.end();
        return;
    }
    else if(!player.getMap().getShip()){
        npc.addText("We are just cleaning the vehicle from the last journey.\r\nBoarding starts 5 minutes before departure.\r\nTry again shortly.");
        npc.sendNext();
        npc.end();
        return;
    }
    else if(getMinute()%10 == 9){
        npc.addText("The flight is getting ready for takeoff. I'm sorry, but you'll have to get on the next ride. The ride schedule is available through the usher at the ticketing booth.");
        npc.sendNext();
        npc.end();
    }
    if(state == 0){
        npc.addText("It looks like there's plenty of room for this flight. The flight will be long, but you'll get to your destination just fine. What do you think? Do you wish to board the flight?");
        npc.sendYesNo();
    }
    else if(state == 1){
        if(npc.getSelected() == YES){
           player.changeMap(240000111);
        }
        npc.end();
    }
}